package com.xi2.service.impl;

import com.xi2.dao.UserMapper;
import com.xi2.entity.User;
import com.xi2.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author GHOSTLaycoo
 * @date 2020/3/18 0018 - 下午 22:12
 */
@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public Boolean loginByUser(String username, String password) {
        User user = userMapper.selectByUser(username, password);
        if(user!=null){
            return true;
        }
        return false;
    }
}
